<?php
/* @var $this SiteController */
/* @var $model LoginForm */
/* @var $form CActiveForm  */

$this->pageTitle = Yii::app()->name . ' - Login';
$this->breadcrumbs = array(
    'Login',
);
?>

<h1>Login</h1>

<p>Please fill out the following form with your login credentials:</p>

<div class="form">

    <?php
    $form = $this->beginWidget('CActiveForm', array(
        'id' => 'entrar-form',
        'enableClientValidation' => true,
        'clientOptions' => array(
            'validateOnSubmit' => true,
        ),
    ));
    ?>
        <p class="note">Fields with <span class="required">*</span> are required.</p>

        <div class="row">
            <?php echo $form->labelEx($model, 'usuario'); ?>
            <?php echo $form->textField($model, 'usuario'); ?>
            <?php echo $form->error($model, 'usuario'); ?>
        </div>

        <div class="row">
            <?php echo $form->labelEx($model, 'senha'); ?>
            <?php echo $form->passwordField($model, 'senha'); ?>
            <?php echo $form->error($model, 'senha'); ?>
            <p class="hint">
                Hint: You may login with <kbd>demo</kbd>/<kbd>demo</kbd> or <kbd>admin</kbd>/<kbd>admin</kbd>.
            </p>
        </div>

        <div class="row rememberMe">
            <?php echo $form->checkBox($model, 'lembrar'); ?>
            <?php echo $form->label($model, 'lembrar'); ?>
            <?php echo $form->error($model, 'lembrar'); ?>
        </div>

        <div class="row buttons">
        <?php echo CHtml::submitButton('Entrar'); ?>
        </div>
    <?php $this->endWidget(); ?>
</div><!-- form -->
